/***扑克座位数据类 
 */
var EnumRole = require('../Enum/EnumRole');
var _ = require('../../FrameWork/we_underscore');
var EnumSex = require('../../FrameWork/Enum/EnumSex');
module.exports = cc.Class({
    ctor() {
        this.playName = '';
        this.money = 0;
        this.roleType = EnumRole.GAMEPLAYER;
        this.sex = EnumSex.BOY;
        this.seatIdx = -1;
    },
    setPlayName(_name) {
        this.playName = _name;
    },
    /***获取玩家名字 */
    getPlayName() {
        return this.playName;
    },
    /**设置座位id*/
    setSeatIdx(_seatIdx) {
        this.seatIdx = _seatIdx;
    },
    /**座位id */
    getSeatIdx() {
        return this.seatIdx;
    },
    /***获取玩家货币值 */
    getMoney() {
        return this.money;
    },
    setMoney(_money) {
        this.money = _money;
    },
    /**角色类型 */
    getRoleType() {
        return this.roleType;
    },
    /**获得性别 */
    getSex() {
        return this.sex;
    },
    getSeatInfo() {
        return {
            playName: this.playName,
            money: this.money,
            roleType: this.roleType,
            sex: this.sex,
            seatIdx: this.seatIdx
        }
    },
    //--------------------------------
    //刷新手牌数量
    refreshCardLeftCnt(_cardLeftCnt) {
        //子类自己实现
    },
    /***手牌 */
    setHandCards(_handCards) {
        //子类自己实现
    },
    /***出牌动作
     * _outCardInfo:{seatIdx:1,groupType:1,cardIds:[]}
     */
    outCardAct(_outCardInfo) {
        //return 剩余的牌数量 需要子类自己实现
    },
});